<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增气值')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-ncGasLog-add">
			<div class="form-group">
				<label class="col-sm-3 control-label">气表值(MPa)</label>
				<div class="col-sm-8">
					<input id="gasValue" name="gasValue" required class="form-control" step="2" type="number">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">记录时间</label>
				<div class="col-sm-8">
					<input id="createTime"  data-format="yyyy-MM-dd HH:mm:ss" data-type="datetime" required name="createTime"
						   th:value="*{#dates.format(new java.util.Date().getTime(), 'yyyy-MM-dd HH:mm:ss')}" class="form-control" type="text" th:class="time-input" >

					<!--<input id="createTime"  name="createTime" placeholder="请选择时间" class="form-control" type="text" th:class="time-input" >-->
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label">备注</label>
				<div class="col-sm-8">
					<textarea id="remark" name="remark" rows="4" class="form-control" type="text"> </textarea>
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/ncGasLog"
		$("#form-ncGasLog-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});

		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-ncGasLog-add').serialize());
	        }
	    }
	</script>


</body>
</html>
